package br.com.comprasPublicas.entity;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

/**
 *
 * @author helsen_rafael
 * @since 11/01/11
 */

@Entity
@DiscriminatorValue("1")
public class PessoaFisica extends Pessoa  {

    @Column(name="cpf", length=14, nullable=false) 
    private String cpf;

    @Column(name="rg", length=12, nullable=false)
    private String rg;

    @Column(name="nome", length=80, nullable=false)
    private String nome;

    @Cascade(CascadeType.ALL)

    /**
     * @return the cpf
     */
    public String getCpf() {
        return cpf;
    }

    /**
     * @param cpf the cpf to set
     */
    public void setCpf(String cpf) {
        this.cpf = cpf;
    }

    /**
     * @return the rg
     */
    public String getRg() {
        return rg;
    }

    /**
     * @param rg the rg to set
     */
    public void setRg(String rg) {
        this.rg = rg;
    }

    /**
     * @return the nome
     */
    public String getNome() {
        return nome;
    }

    /**
     * @param nome the nome to set
     */
    public void setNome(String nome) {
        this.nome = nome;
    }
}
